import axios from "axios";

//基础url


//获取所有分类
export const allKind = () =>
    axios({
        method: "get",
        url: "/api/cats/lv2/statistics"
    });

//获取排行榜类型
export const allRank = () =>
    axios({
        method: "get",
        url: "/api/ranking/gender"
    });

//获取男生最热排行榜数据
export const maleRank = (data = "") =>
    axios({
        method: "get",
        url: "/api/ranking/" + data
    });

//获取女生最热排行榜数据
export const femaleRank = (data = "") =>
    axios({
        method: "get",
        url: "/api/ranking/" + data
    });

//剑来小说数据
export const jianlai = () =>
    axios({
        method: "get",
        url: "/api/book/592fe687c60e3c4926b040ca"
    });

//医妃权倾天下数据
export const yifei = () =>
    axios({
        method: "get",
        url: "/api/book/537c0fb445c8027b6200e670"
    });
//新书推荐
export const newBook = () =>
    axios({
        method: "get",
        url: "/api/ranking/54d43709fd6ec9ae04184aa5"
    });

//完结排行榜小说
export const freeBook = () =>
    axios({
        method: "get",
        url: "/api/ranking/564eb878efe5b8e745508fde"
    });
